﻿using System;
using System.Xml.Serialization;
using ElectronicCommerce.Framework.Configuration.Attributes;

namespace ElectronicCommerce.Framework.Web.Configuration.ImageSize
{
    /// <summary>
    /// Image Size Configuration
    /// </summary>
    [ConfigFile("ImageSize.config")]
    [Serializable]
    [XmlRoot("imageSizeConfig")]
    public class ImageSizeConfiguration
    {
        /// <summary>
        /// Default Image Name
        /// </summary>
        [XmlAttribute("defaultImageName")]
        public string DefaultImageName { get; set; }

        /// <summary>
        /// Image Size Item Group Collection
        /// </summary>
        [XmlElement("imageSizeGroup")]
        public ImageSizeItemGroupCollection ImageSizeItemGroups { get; set; }
    }
}
